package com.meizi.drop.hellodemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021/1/13 10:16
 */
@RestController
public class HelloController {
    @GetMapping("hello")
    public String hello(){
        return  new SimpleDateFormat("hh:mm:ss").format(new Date());
    }
}
